package com.tentact.servlets;

import com.tentact.service.Chf_empService;
import com.tentact.vo.Employee;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.annotation.*;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

@WebServlet(name = "Chf_selectApproveServlet", value = "/Chf_selectApproveServlet")
public class Chf_selectApproveServlet extends HttpServlet {
    Chf_empService c_es=new Chf_empService();
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        List<Employee> list=new ArrayList<>();
        list=c_es.selectEmp(0);
        request.setAttribute("list",list);
        request.getRequestDispatcher("approveaccount.jsp").forward(request,response);
    }

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

    }
}
